/*package com.lmx.repoDomain.tmodel;

import java.util.Date;
import java.util.List;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ForeignKey;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.lmx.repoDomain.tmodel.business.User;

import io.katharsis.resource.annotations.JsonApiIncludeByDefault;
import io.katharsis.resource.annotations.JsonApiResource;
import io.katharsis.resource.annotations.JsonApiToMany;
import io.katharsis.resource.annotations.JsonApiToOne;

@JsonApiResource(type = "staffscheduledetail")
@Table(name = "tnb_staffscheduledetail")
@Entity
public class StaffScheduleDetail extends BaseEntity {

	private StaffSchedule schedule;//所对应排班
		
	private WorkTimeSetting workTimeSetting;// 班次
	

	@JsonApiToOne
	//@JsonApiIncludeByDefault
	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REFRESH)
	@Fetch(FetchMode.JOIN)
	@JoinColumn(name = "schedule_id", foreignKey = @ForeignKey(name = "null"))
	public StaffSchedule getSchedule() {
		return schedule;
	}

	public void setSchedule(StaffSchedule schedule) {
		this.schedule = schedule;
	}

	@JsonApiToOne
	//@JsonApiIncludeByDefault
	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REFRESH)
	@Fetch(FetchMode.JOIN)
	@JoinColumn(name = "workTimeSetting_id", foreignKey = @ForeignKey(name = "null"))
	public WorkTimeSetting getWorkTimeSetting() {
		return workTimeSetting;
	}

	public void setWorkTimeSetting(WorkTimeSetting workTimeSetting) {
		this.workTimeSetting = workTimeSetting;
	}



//	@JsonApiToOne
//	@JsonApiIncludeByDefault 
//	@Fetch(FetchMode.JOIN)
//	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REFRESH)
//	@JoinColumn(name = "item_id",foreignKey = @ForeignKey(name = "null"))
//	public CustomerServiceItem getItem() {
//		return item;
//	}
//
//	public void setItem(CustomerServiceItem item) {
//		this.item = item;
//	}




	public StaffScheduleDetail() {
	}



	
}
*/